package yunheadmin.login;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.util.MonthDisplayHelper;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.Toast;

public class LoginActivity extends Activity {

	EditText et_uid, et_password;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_login);

		Button button = (Button) findViewById(R.id.bt_register);
		button.setOnClickListener(buttonListener);
		et_uid = (EditText) findViewById(R.id.et_uid);
		et_password = (EditText) findViewById(R.id.et_password);
		}

	public void passDate() {
		Intent intent = new Intent(this, SuccessActivity.class);
		intent.putExtra("uid", et_uid.getText().toString().trim());
		intent.putExtra("password", et_password.getText().toString().trim());
		startActivity(intent);
	}

	private OnClickListener buttonListener = new OnClickListener() {
		public void onClick(View v) {
				passDate();
		}
	};

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	

}
